package com.orientsec.autotest.project.system.autocase.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.orientsec.autotest.project.system.autocase.mapper.AutocaseMapper;
import com.orientsec.autotest.project.system.autocase.domain.Autocase;
import com.orientsec.autotest.project.system.autocase.service.IAutocaseService;
import com.orientsec.autotest.common.utils.text.Convert;

/**
 * 案例设置 服务层实现
 * 
 * @author autotest
 * @date 2020-02-07
 */
@Service
public class AutocaseServiceImpl implements IAutocaseService 
{
	@Autowired
	private AutocaseMapper autocaseMapper;

	/**
     * 查询案例设置信息
     * 
     * @param caseNo 案例设置ID
     * @return 案例设置信息
     */
    @Override
	public Autocase selectAutocaseById(String caseNo)
	{
	    return autocaseMapper.selectAutocaseById(caseNo);
	}
	
	/**
     * 查询案例设置列表
     * 
     * @param autocase 案例设置信息
     * @return 案例设置集合
     */
	@Override
	public List<Autocase> selectAutocaseList(Autocase autocase)
	{
	    return autocaseMapper.selectAutocaseList(autocase);
	}
	
    /**
     * 新增案例设置
     * 
     * @param autocase 案例设置信息
     * @return 结果
     */
	@Override
	public int insertAutocase(Autocase autocase)
	{
	    return autocaseMapper.insertAutocase(autocase);
	}
	
	/**
     * 修改案例设置
     * 
     * @param autocase 案例设置信息
     * @return 结果
     */
	@Override
	public int updateAutocase(Autocase autocase)
	{
	    return autocaseMapper.updateAutocase(autocase);
	}

	/**
     * 删除案例设置对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteAutocaseByIds(String ids)
	{
		return autocaseMapper.deleteAutocaseByIds(Convert.toStrArray(ids));
	}
	
}
